<?
    final class Principio_View_Helper_Firmwares extends Zend_View_Helper_Abstract
    {
        public function firmwares()
        {
            $html = "";

            foreach ($this->view->firmwares as $model_firmware)
            {
                $html .= "<li><a href=\"\" ".($model_firmware->getID() == $this->view->id ? "class=\"active\"" : "")." onClick=\"ajaxFirmwares({id: ".$model_firmware->getID().", action: 'view', use_inner: true, no_apply: true}); return false;\"><nobr>".
                    $model_firmware->getCaption()." [Version: ".$model_firmware->getVersion()."]</nobr></a></li>";
            };

            $html .= "<li class=\"add_item\"><a href=\"\" ".($this->view->id == -1 ? "class=\"active\"" : "")." onClick=\"addItem({menu: 'firmwares', container: 'inner'}); return false;\">Add new firmware</a></li>";

            return $html;
        }
    };
?>